package br.com.scriptmanager.services.factory;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;


public class Filtros {
	private Map<String,Object> filter = new HashMap<String, Object>();
	
	public void addString(String key, String value){
		filter.put(key, value);
	}

	public void addObject(String key, Object value){
		filter.put(key, value);
	}
	
	public Object getValue(String key){
		return filter.get(key);
	}
	
	public boolean has(String key){
		return filter.containsKey(key) && filter.get(key) != null && filter.get(key) != "";
	}
	
	public String[] getKeys(){
		String[] string = null; 
		
		return (String[])filter.keySet().toArray(new String[0]);
	}
}
